<template>
  <div class="index">
    <el-container>
      <el-header height="auto">
        <!-- <nav-bar></nav-bar> -->
      </el-header>
      <el-main v-permission="['admin','dd']">Main</el-main>
    </el-container>
  </div>
</template>

<script lang="ts">
import { Component, Vue } from 'vue-property-decorator';
import { formatTime } from '@/utils/index';

@Component({
  name: 'Index'
})
export default class Index extends Vue {

  public created() {
    let date = new Date().getTime() - 1000 * 5 * 24 * 60 * 60;
    let bb = formatTime(date);
    console.log(bb)
  }
}
</script>

<style lang="scss" scoped>
// .index {

// }
</style>
